package com.wjpeng.wms.mapper;

import com.wjpeng.wms.domain.Systemmenu;
import com.wjpeng.wms.query.SystemMenuQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SystemmenuMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Systemmenu record);

    Systemmenu selectByPrimaryKey(Long id);

    List<Systemmenu> selectAll();

    int updateByPrimaryKey(Systemmenu record);

    List<Systemmenu> queryForMenu(SystemMenuQueryObject qo);

    void deleteChildMenu(Long id);

    List<Map<String,Object>> selectMenusBySn(String menuSn);

    List<Map<String,Object>> selectMenusBySnAndUserId(@Param("menuSn") String menuSn,
                                                      @Param("userId") Long userId);
}